{% include "../public/min-header.html" %}
<div class="wrapper">
	{% include "../public/breadcrumb.html" %}
	<section class="content">
       	<div class="row">
       		<div class="col-xs-12">
	            <div class="panel panel-default">
	                <div class="panel-heading">
	                    <h3 class="panel-title">
	                    	<i class="fa fa-list"></i>&nbsp;角色管理
	                    </h3>
	                </div>
	                <div class="panel-body">
		                <nav class="navbar navbar-default">	     
					        <div class="collapse navbar-collapse">
					          <form class="navbar-form form-inline" role="search">
					            <div class="form-group pull-right">
						            <a href="{{helper.pathFor('adadri')}}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i>添加角色</a>
					            </div>		          
					          </form>		
					      	</div>
		    			</nav>
			            <div class="table-responsive">
			             	<table  class="table table-bordered table-striped">
				                <thead>
				                   	<tr>
					                   	<th>ID</th>
					                   	<th>角色名称</th>
					                   	<th>描述</th>
					                   	<th>操作</th>
				                   	</tr>
				                </thead>
								<tbody>
								{% for vo in lists %}
									  	{% if vo.role_id > 1 %}
										  	<tr role="row" align="center">
						                     	<td>{{vo.role_id}}</td>
						                     	<td>{{vo.role_name}}</td>
						                     	<td>{{vo.role_desc}}</td>
				                     			<td>
							                      	<a class="btn btn-primary" href="{{helper.pathFor('adadri',{id:vo.role_id,act:'edit'})}}"><i class="fa fa-pencil"></i></a>
							                      	<a class="btn btn-danger setRemove" href="javascript:void(0)" data-post-url="{{helper.pathFor('adcoset')}}" data-id="{{vo.role_id}}" data-jump-url="{{helper.pathFor('adadrl')}}" data-type="role"><i class="fa fa-trash-o"></i></a>
											 	</td>
						                    </tr>
					                   	{% endif %}
				                  	{% endfor %}
			                   	</tbody>
		               		</table>
			            </div>
						{% include "../public/page.html" %}
		          	</div>
		        </div>
	       	</div>
      	</div>
   	</section>
</div>
{% include "../public/main-footer.html" %}